﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CRUD;

namespace ClientASP
{
    public partial class edit : System.Web.UI.Page
    {
       
        public Person curPEr=null;
        protected void Page_Load(object sender, EventArgs e)
        {
           // TextBox SourceTextBox = (TextBox)Page.PreviousPage.FindControl("Id_TB");
           // Id_TB.Text = SourceTextBox.Text;
            if (PreviousPage.CurrentPerrson != null)
            {
                Id_TB.Text = PreviousPage.CurrentPerrson.id.ToString();
                FName_TB.Text = PreviousPage.CurrentPerrson.FName;
                LNAME_TB.Text = PreviousPage.CurrentPerrson.LName;
                AGE_TB.Text = PreviousPage.CurrentPerrson.Age.ToString();
            }
        }

    }
}